package dlg.code.builder2;

/**
 * 指挥者
 */
public class Director {

    public Product getProduct(AbstractBuilder builder) {
        Product product = builder
//                .setName("DS")
                .setWidth("60")
                .setHeight("80")
                .getProduct();

        return product;
    }

    public static void main(String[] args) {
        Director director = new Director();
        Product product = director.getProduct(new ConcreteBuilder());
        System.out.println("product = " + product);
    }

}
